#!/bin/bash

#echo "testing characteristic type $1"

set -x

for imgname in lenna barbara testscreensmallgrey 
do
  contextdecode -bp 15 -bs 1 -cf goodcc/lennagtw.ctd -i ../images/$imgname.pgm goodbits/${imgname}gtw.bits temp/temp.pgm
  echo ""
done

for imgname in testscreen testscreensmall 
do
  contextdecode -bp 15 -bs 1 -cf goodcc/lennagtw.ctd -i ../images/$imgname.ppm goodbits/${imgname}gtw.bits temp/temp.ppm
  echo ""
done

for imgname in lenna
do
  contextdecode -bp 15 -bs 1 -cf goodcc/lennagtw.ctd -i ../images/$imgname.pgm goodbits/${imgname}gtws4.bits temp/temp.pgm
  echo ""
  contextdecode -bp 15 -bs 1 -cf goodcc/lenna1greedy.ctd -i ../images/$imgname.pgm goodbits/${imgname}1s8greedy.bits temp/temp.pgm
  echo ""
done

